#ifndef BEING_H
#define BEING_H

#include <QWidget>
#include <QGraphicsEllipseItem>
#include <QPainter>

class Being : public QGraphicsEllipseItem
{
public:
    enum { Type = UserType + 1 };
    Being(int T, int X, int Y, int SW, int MW, int W, int Speed, double h);
    void updateW(int Val);
    explicit Being(QGraphicsEllipseItem *parent = 0, double h = 2);
    int X,Y,speed,weight,minW,spawnW,typeOf;
    int type() const;
    double updateSize();
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    double maxSize, minSize;
    QRectF boundingRect() const;
signals:

public slots:
protected:

};

#endif // BEING_H
